<?php
/**
 * Created by PhpStorm.
 * User: weichen
 * Date: 2017/5/7
 * Time: 19:22
 */

namespace Tea\Model;


use Common\Model\CommonModel;

class TeaWorksModel extends CommonModel
{

    //类型：1、浇水，2、施肥，3、修剪，4、摘茶，5、选茶，6、炒茶
    const TYPE_1 = 1;
    const TYPE_2 = 2;
    const TYPE_3 = 3;
    const TYPE_4 = 4;
    const TYPE_5 = 5;
    const TYPE_6 = 6;

    public function typeToString($type) {
        switch ($type) {
            case self::TYPE_1:
                return '浇水';
                break;
            case self::TYPE_2:
                return '施肥';
                break;
            case self::TYPE_3:
                return '修剪';
                break;
            case self::TYPE_4:
                return '摘茶';
                break;
            case self::TYPE_5:
                return '选茶';
                break;
            case self::TYPE_6:
                return '炒茶';
                break;
            default:
                return '';
                break;
        }
    }
}